<?php


namespace Ucer\Hasher;

use Illuminate\Support\ServiceProvider;

class Md5HashProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('md5hasher', function () {
            return new Md5Hasher();
        });//app('md5hasher') 就可以直接拿到 Md5Hasher 这个类
    }
}
